package city.spring.modules.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 实体类：部门报损关联物资表
 *
 * @author 谢金婷
 * @date 2021-01-18 11:09:09
 */
@Data
@TableName("material_breakage_warehouse_material_ext")
public class MaterialBreakageWarehouseMaterialExtEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 报损表id
     */
    private String breakageId;

    /**
     * 仓库id
     */
    private String storehouseId;

    /**
     * 物资id
     */
    private String materialId;
    @TableField(exist = false)
    private String name;

    /**
     * 报损数量
     */
    private BigDecimal breakageQuantity;

    /**
     * 计量单位
     */
    private String unitmeasurement;

    /**
     * 单价
     */
    private BigDecimal unitprice;

    /**
     * 报损金额
     */
    private BigDecimal breakageTotal;

    /**
     * 报损原因
     */
    private String reason;

}